﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GpgApi;
using System.ComponentModel;

namespace WgpgGUI
{
    public class PhotoNode : INotifyPropertyChanged
    {
        private KeyPhoto m_photo;
        public event PropertyChangedEventHandler PropertyChanged;

        //public KeyNode Key { get; set; }
        public UInt32 Index { get { return m_photo.Index; } }

        public PhotoNode(KeyPhoto photo)
        {
            m_photo = photo;
        }

        private void NotifyPropertyChanged(String name)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(name));
        }

        public void SetPhoto(KeyPhoto photo)
        {
            if (photo == null)
                return;
        }
    }
}
